home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh +x
- #
- # Argument 1 (the only argument to InstallationCheck) is the full name of the package
- # The IOXperts installation check goes into the package becuase the installation gets
- # confused about the
- #
- # NOTE - this check works only with the current boot volume, although it is called for
- # each and every volume. (TODO-try setting install only on boot volume flag in .info file)
- # There probably isn't any way to use the volume argument "$3" to apply this to
- # the selected installation volume because of the above. There is no script that
- # is called after the volume selection but before the installer chooses install/upgrade.
- # Also, the installer should only install the driver on the boot volume because it
- # needs to do prebinding which I suspect will not work correctly if you install the
- # driver on a different boot volume.
- #
-
- P="$1"
- PACKAGE_NAME=`/usr/bin/basename "${P}"`
-
- /bin/rm -rf "/Library/Receipts/${PACKAGE_NAME}"
-
- # case sensitivity work around
- if [ "${PACKAGE_NAME}" == "Webcam.pkg" ]
- then
- /bin/rm -rf "/Library/Receipts/WebCam.pkg"
- fi
-
- exit 0
-
- #
- # TODO - are there variants that cause problems?
- # special handling for Webcam vs WebCam
- #
-
- #
- # Where the InstallationCheck.strings go.
- #
- #Test.pkg
- # Contents
- # Archive.bom
- # Archive.pax.gz
- # Info.plist
- # Resources
- # Description.plist
- # InstallationCheck -1-
- # English.lproj -2-
- # InstallationCheck.strings -3-
- # French.lproj -4-
- # InstallationCheck.strings -5-
- #